<?php

namespace app\mall\controller\api\goods;

use app\mall\enum\StatusEnum;
use app\mall\exceptions\ApiException;
use app\mall\model\MallGoods;

class Info extends Base
{

    /**
     * @return \think\response\Json
     * @throws \app\mall\exceptions\BaseException
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function index()
    {
        $field = [
            'id', 'title', 'ads_title', 'image',
            'price', 'price_origin', 'stock', 'sale_volume', 'praise_volume'
        ];
        $info = $this->getDataFromRequest($field);
        return json_return($info);
    }

}